home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: (void(far *)()) 0
- Date: 25 Jan 1996 15:18:04 -0800
- Organization: CRL Dialup Internet Access
- Message-ID: <4e933c$fo4@crl.crl.com>
- References: <341998718.10858110@magnet.at>
- NNTP-Posting-Host: crl.com
-
- m.imlinger@magnet.at (markus imlinger) writes:
-
- >In a C-Programm I saw the instruction:
- >.... = (void(far *)()) 0;
-
- >It seems that (void(far *)()) is a cast-
- >operator.
-
- >If so this instruction casts 0 to a far-
- >pointer to a function which returns nothing.
-
- This is correct.
-
- >Now I want to know if my assumption is right and
- >in case it is, what does this mean for 0 ?
-
- 0 is a synonym for the NULL pointer, when used in a pointer context. So
- the line you're referring to assigns a NULL function pointer.
-
- Hope that helps!
- Bob
-